package com.gxuwz.medical.domain.user;

import java.util.Set;

import com.gxuwz.medical.domain.role.Role;

/**
 * 
 * @ClassName: User
 * @Description: 用户信息实体类
 * @author 陈震洺
 * @date 2019年3月14日 下午3:43:59
 *
 */
public class User {

	/**
	 * ID
	 */
	private int id;
	/**
	 * 工号
	 */
	private String userid;
	/**
	 * 密码
	 */
	private String pwd;
	/**
	 * 姓名
	 */
	private String fullname;
	/**
	 * 用户对应角色列表
	 */
	private Set<Role> roles;

	public User(String userid, String pwd) {
		super();
		this.userid = userid;
		this.pwd = pwd;
	}

	public User() {
		super();
	}

	public User(int id, String userid, String pwd, String fullname, Set<Role> roles) {
		super();
		this.id = id;
		this.userid = userid;
		this.pwd = pwd;
		this.fullname = fullname;
		this.roles = roles;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

}
